import request from '@/utils/request'

//商城管理-订单管理列表
export function listOrder(query){
    return request({
        url: '/order/list',
        method: 'get',
        params: query
    })
}
//商城管理-查询订单详情
export function detailOrder(id){
    return request({
        url: '/order/detail',
        method: 'get',
        params: { id }
    })
}
//商城管理-确定发货
export function shipOrder(data){
    return request({
        url: '/order/ship',
        method: 'post',
        data
    })
}
//商城管理-确定退款
export function refundOrder(data){
    return request({
        url: '/order/refund',
        method: 'post',
        data
    })
}
